<!--
 * @Author: 李天惊 uf_lee@163.com
 * @Date: 2022-10-11 10:19:48
 * @LastEditors: 李天惊 uf_lee@163.com
 * @LastEditTime: 2022-11-14 15:40:10
 * @FilePath: \grazlink20\uc_sys\src\views\Test\Test01.vue
 * Copyright (c) 2022 by 李天惊 uf_lee@163.com, All Rights Reserved. 
-->
<script setup lang="ts">
import { LeeEdit2 } from '@/components/Lee/Edit'
const data = {
  name: 123
}
const aaa = () => {
  console.log('aaa')
}
const schema: any = [
  {
    field: 'Select',
    label: '多选',
    component: 'Select',
    componentProps: {
      options: [
        {
          value: 'Option1',
          label: 'Option1'
        },
        {
          value: 'Option2',
          label: 'Option2'
        },
        {
          value: 'Option3',
          label: 'Option3'
        },
        {
          value: 'Option4',
          label: 'Option4'
        },
        {
          value: 'Option5',
          label: 'Option5'
        }
      ]
    },
    colProps: {
      span: 12
    }
  },
  {
    field: 'goods_name',
    label: '商品名称',
    component: 'Input',
    componentProps: {
      onchange: aaa
    },
    colProps: {
      span: 12
    }
  },
  {
    field: 'goods_name',
    label: '商品名称',
    component: 'Input',
    componentProps: {
      onchange: aaa
    },
    colProps: {
      span: 24
    }
  },
  {
    field: 'goods_type',
    label: '商品类型',
    component: 'Input',
    componentProps: {
      onchange: aaa
    },
    colProps: {
      span: 24
    }
  }
]
</script>
<template>
  <LeeEdit2 :schema="schema" :data="data" />
</template>
